#media {
    width: 1100px;
    height: 550px;
    display: none;
}
.modal{
    left: 27%;
}
.modal-body{
    width: 100%;
    height: 550px;
    max-height: 550px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.close{
    position: absolute;
    right: 10px;
    top: 10px;
}
#media .media-top{
    float: left;
    width: 100%;
    height: 40px;
    background: #62A8D1;
    color: #ffffff;
}
#media .media-top .active{
    color: #555;
}
#media .media-top ul{
    margin-top: 10px;
}
#media .media-top ul li{
    list-style: none;
    display: inline;
    margin-right: 10px;
    cursor: pointer;
    font-weight: bolder;
}
#media .media-top ul li:hover{
    text-decoration: underline;
}
#media .media-left{
    float: left;
    width: 860px;
    height: 510px;
    overflow-y: auto;
}
#media .media-left .upload-image{
    position: relative;
    float: left;
    width: 100%;
    height: 100%;
}
#media .media-left .library-image{
    float: left;
    width: 100%;
    height: 100%;
}
#media .media-right{
    position: relative;
    float: left;
    width: 237px;
    height: 510px;
    background: #f2f2f2;
    border-left: 1px solid #CCCCCC;
}
#media .media-right .image{
    float: left;
    width: 160px;
    height: 160px;
    border: 1px dotted #ccc;
    margin-bottom: 10px;
    padding: 5px;
}
#media .media-right .image img{
    display: block;
    margin: auto;
    vertical-align: middle;
    max-width: 160px;
    max-height: 160px;
}
#media .media-right .image-submit{
    position: absolute;
    bottom: 10px;
    right: 10px;
}
#media .media-tree{
    float: left;
    width: 200px;
    height: 100%;
    border-right: 1px solid #EEEEEE;
}
#media .upload-image{
    width: 100%;
    height: 100%;
}
#media .library-image{
    width: 100%;
    height: 100%;
}
.library-image .img-item{
    position: relative;
    float: left;
    width: 140px;
    height: 140px;
    border: 2px solid #eee;
    margin-top: 10px;
    margin-left: 10px;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    -webkit-box-shadow: inset 0 0 15px rgba(0,0,0,.1),inset 0 0 0 1px rgba(0,0,0,.05);
    box-shadow: inset 0 0 15px rgba(0,0,0,.1),inset 0 0 0 1px rgba(0,0,0,.05);
    background: #f2f2f2;
}

.library-image .img-item .centered{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: translate(50%,50%);
    -ms-transform: translate(50%,50%);
    transform: translate(50%,50%);
}

.library-image .img-clicked{
    width: 140px;
    height: 140px;
    border: 2px solid #62A8D1;
}
.library-image .img-item img{
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    max-height: 137px;
    -webkit-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}
#fileDrop{
    width: 100%;
    height: 100%;
}
#upload_align{
    width: 350px;
    margin: 0 auto;
    padding-top: 100px;
}
#upload_align input{
    display: block;
}
.custom-file-input::-webkit-file-upload-button {
    visibility: hidden;
}
.custom-file-input::before {
    content: 'Chọn file ảnh upload';
    display: inline-block;
    background: -webkit-linear-gradient(top, #f9f9f9, #e3e3e3);
    border: 1px solid #999;
    border-radius: 3px;
    padding: 5px 8px;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    text-shadow: 1px 1px #fff;
    font-weight: 700;
    font-size: 10pt;
    color: #222222;
}
#info-image{
    position: relative;
}
.remove-image{
    position: absolute;
    top: -10px;
    right: -10px;
    display: block;
    background: url("../images/remove.png") no-repeat;
    width: 20px;
    height: 20px;
    background-size: 16px 16px;
    opacity: 0.5;
    cursor: pointer;
}
.custom-file-input:hover::before {
    border-color: black;
}

.custom-file-input:active::before {
    background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
}

#upload_file input[type=button]{
    margin: 0 auto;
    margin-top: 15px;
}

#upload_align h5{
    text-align: center;
}

#userfile{
    margin-left: 100px;
}